package com.lucy.viewer.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author kindear
 * viewer 主文件参数
 */
@Data
@ApiModel(value = "viewer基础文件DTO")
public class ViewerFile {
    @ApiModelProperty(value = "文档 key", example="xYz123")
    private String key;

    @ApiModelProperty(value = "文档标题", example="test.doc")
    private String title;

    @ApiModelProperty(value = "文件名称",notes = "一般同文件名")
    private String fileName;

    @ApiModelProperty(value = "文档类型", example="doc")
    private String fileType;

    @ApiModelProperty(value = "文档唯一编码")
    private String md5;
//
//    @ApiModelProperty(value = "存储位置",example = "minio")
//    private String storage;

    @ApiModelProperty(value = "本地存储路径",notes = "当且仅当storage为local")
    private String path;
    /** 【必需】文件实体下载地址 */
    @ApiModelProperty(value = "文档获取url", example="http://127.0.0.1:8080/api/file/xYz123.docx")
    private String url;

//    @ApiModelProperty(value = "是否是新建",example = "0")
//    private Integer isNew = 0;
}
